package com.lsh.oms.core.model.order;

import com.lsh.oms.core.model.base.VenderModel;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单头扩展信息
 *
 * @author peter
 * @date 18/12/21
 */
@Setter
@Getter
@NoArgsConstructor
@ToString
public class OrderHeadExt extends VenderModel implements Serializable {

    private static final long serialVersionUID = -9057923303620002304L;

    /**
     * ID
     */
    private Long id;

    /**
     * 仓库ID
     */
    private String warehouseId;

    /**
     * 仓库名
     */
    private String warehouseName;

    /**
     * 实际sku数量
     */
    private BigDecimal realSkuCount;

    /**
     * 订单裸价
     */
    private BigDecimal originMoney;

    /**
     * 单品特价后的总价
     */
    private BigDecimal saledMoney;

    /**
     * 订单下单价(优惠后)
     */
    private BigDecimal placedMoney;

    /**
     * 用户下单IP
     */
    private Long ip;

    /**
     * 最近状态流转时间
     */
    private Integer activedAt;

    /**
     * 活动信息{["activity_id":"","activity_name":"","coupon_money":""]}
     */
    private String activityInfo;

    /**
     * 优惠券信息{["coupon_id":"", "coupon_name":"", "coupon_money":""]}
     */
    private String couponInfo;

    /**
     * code
     */
    private String token;

    /**
     * 现金券信息
     */
    private String cashCouponInfo;

    /**
     * 额外信息
     */
    private String ext;

    /**
     * 调度系统ID
     */
    private Long ofcId;

    /**
     * 调度状态
     */
    private Integer ofcStatus;

    /**
     * 是否根订单(不在使用)
     */
    private Integer isRoot;

    /**
     * 订单来源, 1android, 2ios, 3h5, 4pc
     */
    private Integer fromType;

    /**
     * 订单备注
     */
    private String remarks;

    /**
     * 0.默认 无备注 1.用户要求 2.联系不上用户 99.其他（天气原因等不可抗力）
     */
    private Integer delayRemark;

    /**
     * 是否评价, 0否, 1是
     */
    private Integer isComment;

    /**
     * 
     */
    private Date cancelTime;

    /**
     * 
     */
    private String cancelUser;

    /**
     * 缺交类型
     * @return
     */
    private Integer lackDeliveryType;

    /**
     * 2018-11-05 新增
     */
    private BigDecimal discountedMoney;

    /**
     *
     */
    private String cancelRemark;
}
